package com.nuoniu.sibanyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.SysDictData;
import com.nuoniu.sibanyun.entity.dto.DictDataSaveDto;
import com.nuoniu.sibanyun.mapper.baseMapper.TreeBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 字典数据表 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-05-25
 */
public interface SysDictDataMapper extends BaseMapper<SysDictData>, TreeBaseMapper {

    @Select("select * from sys_dict where dict_type_id=#{typeId}")
    List<DictDataSaveDto> getByType(Long typeId);




}
